package cn.kgc.mybatis.service.impl;

import cn.kgc.mybatis.dao.StudentDao;
import cn.kgc.mybatis.dao.impl.StudentDaoImpl;
import cn.kgc.mybatis.entity.Student;
import cn.kgc.mybatis.service.StudentService;

import java.util.List;

/**
 * @author: 课工场
 * @since 2023/9/22
 */
public class StudentServiceImpl implements StudentService {

    // 存在代码耦合 后续需要优化
    private StudentDao studentDao = new StudentDaoImpl();

    @Override
    public List<Student> getList() {
        List<Student> list = studentDao.getList();
        return list;
    }
}
